﻿using System;
using System.Text;
using YXYLCommon;

namespace Entity
{
    /// <summary>
    /// 创建日期：2016/9/9
    /// 创建作者：guodengjie
    /// 功能说明：打印选项设置
    /// </summary>
    public class PrintOptions
    {
        #region Property
        public float X { get; set; }
        public float Y { get; set; }

        public DbInt Copies { get; set; }

        public string PrinterName { get; set; }

        public string Timestamp { get; set; }
        
        #endregion

        #region 构造函数
        /// <summary>
        /// 打印选择构造函数
        /// </summary>
        public PrintOptions()
        {
            this.X = 0;
            this.Y = 0;
            this.Copies = DbInt.Parse(1);
        }
        public PrintOptions(float x, float y)
        {
            this.X = x;
            this.Y = y;
        }

        private PrintOptions(float x, float y, int copies, string printerName)
        {
            this.X = x;
            this.Y = y;
            this.Copies = DbInt.Parse(copies);
            this.PrinterName = printerName;
        }

        private PrintOptions(float x, float y, int copies, string printerName, string timestamp)
        {
            this.X = x;
            this.Y = y;
            this.Copies = DbInt.Parse(copies);
            this.PrinterName = printerName;
            this.Timestamp = timestamp;
        }
        #endregion
    }
}
